package com.yanqu.road.server.timer.sonhai;

import com.yanqu.road.server.manager.activity.sonhai.CrossSonHaiActivity;
import com.yanqu.road.server.manager.activity.sonhai.CrossSonHaiActivityMgr;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.Map;

/**
 * 山海伏兽-通知区服同步vip均值
 */
public class SonHaiNotifyServerSyncVipAveTask extends GeneralTask {

    @Override
    public void doRun() {
        Map<Integer, Map<Integer, CrossSonHaiActivity>> activityMap = CrossSonHaiActivityMgr.getActivityMap();
        for (Map<Integer, CrossSonHaiActivity> groupActivityMap : activityMap.values()) {
            for (CrossSonHaiActivity activity : groupActivityMap.values()) {
                activity.notifyServerSyncVipPower();
            }
        }
    }
}
